<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of loginController
 *
 * @author nstevens
 */
include_once 'model/portfolioModelClass.php';

class loginController {

    private $model;

    public function __construct($model) {
        $this->model = $model;
    }

    /*
     * Called when a user would like to login
     */
    function loginRequest() {
        $this->model->string = $this->model->processLogin();        
    }

    function toggleUserRole() {
        toggleRole();
        $url = $_SERVER['HTTP_REFERER'];
        header("location:$url");
    }

    //PI APPROVER MAIN PAGE**********************************************************
}

?>
